package com.cxrj.zhsq.Exception.enums;

/**
 * @Author: WangBo
 * @Description: Excel异常枚举类
 * @Date: Create in 15:42 2017/12/15
 * @Modified By:
 */
public enum ExcelExceptionEnum {
    EXCEL_NULL("10001","excel为空！"),
    EXCEL_TYPE_ERROR("10002","文件类型不是EXCEL！"),
    EXCEL_FORMAT_ERROR("10003","excel格式错误！"),
    CODE_ERROR("10004","interfaceCode错误或接口未开启！"),
    FIELD_ERROR("10005","字段信息错误！"),
    DATA_TYPE_ERROR("10006","数据类型错误！")
    ;

    ExcelExceptionEnum(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    //异常状态码
    private String code;
    //异常信息
    private String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
